package com.toune.movie.mvp.adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.widget.TextView;

import com.avos.avoscloud.AVObject;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.toune.movie.R;

import java.util.List;

public class AdapterHistory extends BaseQuickAdapter<AVObject,BaseViewHolder> {

    public AdapterHistory(int layoutResId, @Nullable List<AVObject> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, AVObject data) {
        TextView titleTv = holder.getView(R.id.title_tv);
        TextView timeTv = holder.getView(R.id.time_tv);
        titleTv.setText(data.getString("title"));
        timeTv.setText(data.getString("time"));
    }
}
